package cn.ratel.test;

import cn.ratel.db.Generator;
import cn.ratel.db.ds.DruidDataSourceProvider;

import java.sql.SQLException;

/**
 * author iver
 */
public class GeneratorRunner {
    public static void main(String[] args) throws SQLException {
        String url = "jdbc:mysql://c95dad.mysql.yyclouds.com:6942/rise_db?characterEncoding=UTF-8";
        String user = "f79851d81a5c";
        String password = "1a77229f0de78531";
        String driver = "com.mysql.jdbc.Driver";
        DruidDataSourceProvider dataSourceProvider = new DruidDataSourceProvider(url, user, password, driver);
        new Generator("E:\\codeGen", "cn.iver").generate(dataSourceProvider);
    }
}